package cn.hs.lyxf.feign;

import cn.hs.lyxf.domain.Department;
import cn.hs.lyxf.domain.Employee;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-system") // 指定需要调用的服务的应用名称
public interface SystemFeigen {
    @RequestMapping(value = "/employee/getById/{empId}", method = RequestMethod.GET)
    Employee getId(@PathVariable("empId") Long empId);

    @RequestMapping(value = "/department/getById/{id}", method = RequestMethod.GET)
    Department getById(@PathVariable("id") Long id);
}